package info.techgeek.labs.java5Features.thread.cifortify;


public class Client {
	
   public static void main(String[] args) {
	   System.out.println("Client Start Main ");
      new Client().go();
   }

   public void go() {

      for (int i = 0; i < 5; i++) {
         System.out.println("Client Go "+i);
         FortifyThreadPoolReader fortifyThreadPoolReader = new FortifyThreadPoolReader();
         fortifyThreadPoolReader.setIndex(i);
         TaskThreadPoolExecuter.getInstance().runTask(fortifyThreadPoolReader);
      }
      
      for (int i = 10; i < 15; i++) {
          System.out.println("Client Go "+i);
          FortifyThreadPoolReader fortifyThreadPoolReader = new FortifyThreadPoolReader();
          fortifyThreadPoolReader.setIndex(i);
          TaskThreadPoolExecuter.getInstance().runTask(fortifyThreadPoolReader);
       }
      
      for (int i = 6; i < 10; i++) {
          System.out.println("Client Go "+i);
          FortifyThreadPoolReader fortifyThreadPoolReader = new FortifyThreadPoolReader();
          fortifyThreadPoolReader.setIndex(i);
          TaskThreadPoolExecuter.getInstance().runTask(fortifyThreadPoolReader);
       }
      
      
   }

}

